package day014.fanXing.demo02;

public class Test {
    public static void main(String[] args) {
        Person<BasketBall> p1=new Person<>();
        p1.setHobby(new BasketBall());

        Person<Swim> p2=new Person<>();
        p2.setHobby(new Swim());
//        p2.setHobby(new PingPang());

        Person p3=new Person();
    }
}
